package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.dto.efoms.RepairsInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboRepairsInfoService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageRepairsInfoService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;
import org.springframework.beans.factory.annotation.Autowired;

@SuppressWarnings("rawtypes")
@Service(version = "1.0.0", timeout = 4000)
public class DubboRepairsInfoService implements IDubboRepairsInfoService {
	
	@Autowired
	private ManageRepairsInfoService manageRepairsInfoService;

	@Override
	public ResultPojo select(String repairsId) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = manageRepairsInfoService.select(repairsId);
		return resultPojo;
	}

	@Override
	public ResultPojo selectList(String repairsId, String repStatusCode, String devTypeCode, String devAreaCode,
			String devId, String devName, String key, String press, String repDeptIds, String startTime,
			String endTime) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = manageRepairsInfoService.selectList(repairsId, repStatusCode, devTypeCode, devAreaCode,
				devId, devName, key, press, repDeptIds, startTime, endTime);
		return resultPojo;
	}

	@Override
	public ResultPojo selectPage(Page page, String repairsId, String repStatusCode, String devTypeCode,
			String devAreaCode, String key, String press, String repDeptIds, String startTime, String endTime) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = manageRepairsInfoService.selectPage(page, repairsId, repStatusCode, devTypeCode,
				devAreaCode, key, press, repDeptIds, startTime, endTime);
		return resultPojo;
	}

	@Override
	public ResultPojo insert(RepairsInfoDto repairsInfoDto, String userName) {
		ResultPojo resultPojo = manageRepairsInfoService.insert(repairsInfoDto, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo edit(RepairsInfoDto repairsInfoDto, String userName) {
		// TODO Auto-generated method stub
		ResultPojo resultPojo = manageRepairsInfoService.edit(repairsInfoDto, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo delete(String repairsId, String userName) {
		ResultPojo resultPojo = manageRepairsInfoService.delete(repairsId, userName);
		return resultPojo;
	}

	@Override
	public ResultPojo audit(String repairsId, String userName, String isPass, String operExplain) {
		ResultPojo auditResultPojo = manageRepairsInfoService.audit(repairsId, userName, isPass, operExplain);
		return auditResultPojo;
	}
	
	@Override
	public ResultPojo cancel(String repairsId, String userName, String operExplain, String operReasonCode,
			String operReasonName) {
		ResultPojo resultPojo = manageRepairsInfoService.cancel(repairsId, userName, operExplain, operReasonCode,
				operReasonName);
		return resultPojo;
	}

	@Override
	public ResultPojo press(String repairsId, String userName, String operExplain) {
		ResultPojo resultPojo = manageRepairsInfoService.press(repairsId, userName, operExplain);
		return resultPojo;
	}
	
	@Override
	public ResultPojo devRepeatCheck(String devTypeCode, String devId) {
		ResultPojo resultPojo = manageRepairsInfoService.devRepeatCheck(devTypeCode, devId);
		return resultPojo;
	}

	@Override
	public ResultPojo getOperationCount(String startTime,String endTime) {
		ResultPojo resultPojo = manageRepairsInfoService.getOperationCount(startTime, endTime);
		return resultPojo;
	}

}